package Memory;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wangyg6 on 2018/7/10.
 * oom,堆空间分配过度
 */
public class HeapOutOfMemory {
/*	public static void main(String[] args) {
		Object[] objects = new Object[1024 * 1024 * 1024];
	}*/


	public static void main(String[] args) {
		List<TestCase> cases = new ArrayList<TestCase>();
		while(true){
			cases.add(new TestCase());
		}
	}

	static class TestCase{}
}
